Q: I am using QuickDraw 3D 1.0 on a PowerMac 7100. If I
try to launch my application when QuickDraw 3D is disabled with Extensions Manager,
I get the message:
The application could not be opened because QuickDraw 3D could not be found
|
Since the application has to run even if the user does not have QD3D, what
should I do ?
A: You are "hard" linking to the QuickDraw 3D shared library.
Try "weak" linking to the library, instead. With Metrowerks CodeWarrior this is trivial:
simply select the project window, click on the small triangle on the right side of the
window, and check the Import Weak option from the popup menu. Use the gestalt
selector for QuickDraw 3D to determine if the library exists, and take appropriate action if
it does not exist (to avoid making calls to the non-existent library).
|